package com.miao.UserClass;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;


public class MyImportSelector implements ImportSelector {


    /**
    * Description:  返回的是需要导入的组件的 名字列表
    *  AnnotationMetadata --标注Import注解的类的所有注解信息
    */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

        //
        return new String[]{"com.miao.entity.Desk","com.miao.entity.Dog"};
    }
}
